package com.wanxi.test;

/*输出
 ******
 ******
 ******
 ******
 ******
 ******
 */
//双重循环
public class ForFor {
    public static void main(String[] args) {

        for (int j = 1; j <= 6; j++) {
            for (int i = 1; i <= 7 - j; i++) {
                System.out.print("*");
            }
            System.out.println();
        }

        for (int j = 1; j <= 9; j++) {//99乘法表
            for (int i = 1; i <= j; i++) {
                System.out.print(j + "*" + i + "=" + j * i + "\t");
            }
            System.out.println();
        }


    }

}
